package org.myproject.persistence.audit;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Used to annotate a field that will be set to the current timestamp when a
 * hibernate entity is updated.
 * 
 * {@link PersistentEntityAuditor} must be installed in order for this
 * annotation to work.
 * 
 * @author igor.vaynberg
 * @see PersistentEntityAuditor
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface DateUpdated {

}
